<include file="public:header" />
<include file="public:left" />
<div class="flexigrid">
    <div class="mDiv">
        <div class="ftitle">
            <h3>轮播图编辑</h3>
            <h5><a class="fr" href="{:url('set/banner')}">店铺轮播图</a></h5>
        </div>
    </div>
</div>
	<form  method="post" enctype="multipart/form-data" id="brandForm">
    <input type="hidden" name="id" value="{$banner.id}" />
		<input type="hidden" name="shop_id" value="{$shop_id}" />
     <section>
      <ul class="ulColumn2">
        <!-- <li>
              <span class="item_name" style="width:120px;">标题：</span>
              <input type="text" class="textbox textbox_295" name="title" value="{$banner.title}"/>
        </li> -->
        <li>
        <span class="item_name" style="width:120px;">主图：</span>
           <input type="file" name="bnimage" class="textbox textbox_295"/>
           <input type="hidden" name="bne" class="textbox textbox_295" value="{$banner.pic}"/>
       </li>
       <li>
          <span class="item_name" style="width:120px;">商品分类：</span>
          <select name="cid" id="" class="textbox textbox_295" style="height: 35px" >
              <option value="0">请选择商品分类</option>
              <volist name="category_goods" id="vo">
              <option value="{$vo['id']}" <if condition="$banner.cid eq $vo['id']">selected="selected"</if> >{$vo['name']}</option>
              </volist>
          </select>
        </li>
          <if condition="$banner.pic">
              <li>
                  <span class="item_name" style="width:120px;">主图：</span>
                  <img height="100" src="__STATIC__/uploads/{$banner.pic}" alt="">
              </li>
          </if>
          <li>
              <span class="item_name" style="width:120px;">状态：</span>
              <label><input type="radio" name="status" <eq name="banner.status" value="1"> checked</eq> value="1"/>启用</label>
              <label><input type="radio" name="status" <eq name="banner.status" value="0"> checked</eq> value="0"/>弃用</label>
          </li>
          <li>
              <span class="item_name" style="width:120px;">banner位置：</span>
              <label><input type="radio" name="position" <eq name="banner.position" value="1"> checked</eq> value="1"/>上位置</label>
              <label><input type="radio" name="position" <eq name="banner.position" value="2"> checked</eq> value="2"/>下位置</label>
          </li>
          <li>
              <span class="item_name" style="width:120px;">排序：</span>
              <input type="text" class="textbox textbox_295" name="displayorder" value="{$banner.sort}"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">URL：</span>
              <input type="text" class="textbox textbox_295" name="url" value="{$banner.url}"/>
          </li>
          <li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>
     <!--tabStyle-->
     <script type="text/javascript">
     $(document).ready(function(){
		 //tab
		 $(".admin_tab li a").click(function(){
		  var liindex = $(".admin_tab li a").index(this);
		  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
		  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		 });
		 
		 $(".link_btn").click(function(){
			
			
			$("#brandForm").submit();

		 });

		 });
     </script>
	 

	 


 </div>
</section>
</body>
</html>
